package com.seedog.mq.exception;

/**
 * 当请求的主题不存在时抛出的异常
 */
public class TopicNotFoundException extends MessageQueueException {
    private static final long serialVersionUID = 1L;
    private static final int DEFAULT_ERROR_CODE = 404;
    
    public TopicNotFoundException(String topicName) {
        super(DEFAULT_ERROR_CODE, "Topic not found: " + topicName);
    }
    
    public TopicNotFoundException(String topicName, Throwable cause) {
        super(DEFAULT_ERROR_CODE, "Topic not found: " + topicName, cause);
    }
}